package com.lebang.mapper;

import com.lebang.domain.PhoneLoginRecord;
import com.lebang.example.PhoneLoginRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;

/**
 * PhoneLoginRecordMapper继承基类
 */
@Mapper
public interface PhoneLoginRecordMapper extends MyBatisBaseDao<PhoneLoginRecord, Integer, PhoneLoginRecordExample> {

    Integer countByPhoneAndDate(@Param("now") LocalDate now, @Param("phone") String phone);

    Integer countByImeiAndDate(@Param("now") LocalDate now,@Param("imei") String imei);

    PhoneLoginRecord selectByImeiAndDate(@Param("now") LocalDate now,@Param("imei") String imei);

    void deleteImeiLoginRecord(@Param("phone") String phone,@Param("imei") String imei,@Param("today") LocalDate now);
}